package model;

import java.util.Date;

public class Student {
    //主键自增标识列
    private Integer stuId;
    //学生姓名
    private String stuName;
    //学号
    private String stuNo;
    //性别
    private Integer stuSex;
    //联系电话
    private String stuPhone;
    //电子邮箱
    private String stuEmail;
    //户籍所在地
    private String stuRegistered;
    //居住地址
    private String stuAddress;
    //专业
    private String stuProfession;
    //身份证号码
    private String stuIdnumber;
    //政治面貌
    private String stuPolitice;
    //注册时间
    private Date stuRegdate;
    //状态
    private Integer stuStats;
    //个人简介
    private String stuIntroduction;
    //年级外键
    private Integer gid;
    //多对一保证两表关系
    private Grade grade;

    @Override
    public String toString() {
        return "Student{" +
                "stuid=" + stuId +
                ", stuname='" + stuName + '\'' +
                ", stuno='" + stuNo + '\'' +
                ", stusex='" + stuSex + '\'' +
                ", stuphone='" + stuPhone + '\'' +
                ", stuemail='" + stuEmail + '\'' +
                ", sturegistered='" + stuRegistered + '\'' +
                ", stuaddress='" + stuAddress + '\'' +
                ", stuprofession='" + stuProfession + '\'' +
                ", stuidnumber='" + stuIdnumber + '\'' +
                ", stupolitice='" + stuPolitice + '\'' +
                ", sturegdate=" + stuRegdate +
                ", stustats=" + stuStats +
                ", stuintroduction='" + stuIntroduction + '\'' +
                ", gid=" + gid +
                ", grade=" + grade +
                '}';
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public String getStuNo() {
        return stuNo;
    }

    public void setStuNo(String stuNo) {
        this.stuNo = stuNo;
    }

    public Integer getStuSex() {
        return stuSex;
    }

    public void setStuSex(Integer stuSex) {
        this.stuSex = stuSex;
    }

    public String getStuPhone() {
        return stuPhone;
    }

    public void setStuPhone(String stuPhone) {
        this.stuPhone = stuPhone;
    }

    public String getStuEmail() {
        return stuEmail;
    }

    public void setStuEmail(String stuEmail) {
        this.stuEmail = stuEmail;
    }

    public String getStuRegistered() {
        return stuRegistered;
    }

    public void setStuRegistered(String stuRegistered) {
        this.stuRegistered = stuRegistered;
    }

    public String getStuAddress() {
        return stuAddress;
    }

    public void setStuAddress(String stuAddress) {
        this.stuAddress = stuAddress;
    }

    public String getStuProfession() {
        return stuProfession;
    }

    public void setStuProfession(String stuProfession) {
        this.stuProfession = stuProfession;
    }

    public String getStuIdnumber() {
        return stuIdnumber;
    }

    public void setStuIdnumber(String stuIdnumber) {
        this.stuIdnumber = stuIdnumber;
    }

    public String getStuPolitice() {
        return stuPolitice;
    }

    public void setStuPolitice(String stuPolitice) {
        this.stuPolitice = stuPolitice;
    }

    public Date getStuRegdate() {
        return stuRegdate;
    }

    public void setStuRegdate(Date stuRegdate) {
        this.stuRegdate = stuRegdate;
    }

    public Integer getStuStats() {
        return stuStats;
    }

    public void setStuStats(Integer stuStats) {
        this.stuStats = stuStats;
    }

    public String getStuIntroduction() {
        return stuIntroduction;
    }

    public void setStuIntroduction(String stuIntroduction) {
        this.stuIntroduction = stuIntroduction;
    }

    public Integer getGid() {
        return gid;
    }

    public void setGid(Integer gid) {
        this.gid = gid;
    }

    public Grade getGrade() {
        return grade;
    }

    public void setGrade(Grade grade) {
        this.grade = grade;
    }

    public Student() {
    }

    public Student(Integer stuid, String stuname, String stuno, Integer stusex, String stuphone, String stuemail, String sturegistered, String stuaddress, String stuprofession, String stuidnumber, String stupolitice, Date sturegdate, Integer stustats, String stuintroduction, Integer gid, Grade grade) {
        this.stuId = stuid;
        this.stuName = stuname;
        this.stuNo = stuno;
        this.stuSex = stusex;
        this.stuPhone = stuphone;
        this.stuEmail = stuemail;
        this.stuRegistered = sturegistered;
        this.stuAddress = stuaddress;
        this.stuProfession = stuprofession;
        this.stuIdnumber = stuidnumber;
        this.stuPolitice = stupolitice;
        this.stuRegdate = sturegdate;
        this.stuStats = stustats;
        this.stuIntroduction = stuintroduction;
        this.gid = gid;
        this.grade = grade;
    }
}
